#include "frp.h"
#include "ui_frp.h"
#include<MainWindow.h>
frp::frp(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::frp)
{

    ui->setupUi(this);
    //初始化
    this->setWindowIcon(QIcon(":/fmt.jpg"));
    connect(ui->action1,&QAction::triggered,[=](){
        QMessageBox::information(this,"Instructions","press “W”、“S”、“A”、“D”");
    });
    connect(ui->action2,&QAction::triggered,[=](){
        QMessageBox::information(this,"Info","Author: LiXin");
    });
}

frp::~frp()
{
    delete ui;
}


void frp::on_pushButton_clicked()
{
    MainWindow *win = new MainWindow;
    win->show();
    this->close();
}
